/*
 * MyAuthenticator.java
 *
 * Created on April 10, 2007, 6:47 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.actions;

import javax.servlet.http.*;
import edu.byu.isys413.group1E.data.*;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.*;
import javax.mail.*;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.InternetAddress;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**This class is called by the email bot to authenticate the user information with the email server
 *
 * @author Kendall Frazier
 */
public class MyAuthenticator extends Authenticator{
    
    /** 
     *This method makes the PasswordAuthentication, and fills it with the proper authentication to login to the mail server.
     *When the javaMail connects with the email server, this info is passed in to login.
     *
     *@return PasswordAuthenticatotion this is the login info to login to the mail server.
     */
    public PasswordAuthentication MyAuthenticator() {
        PasswordAuthentication p = new PasswordAuthentication("frazier", "frazier1827");
        
        return p;
    }
        
    
}
